home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / PInterfaces / GXMessages.p < prev    next >
Encoding:
Text File  |  1997-08-12  |  3.5 KB  |  143 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        GXMessages.p
  3.  
  4.      Contains:    This file contains all of the public data structures,
  5.  
  6.      Version:    Technology:    Quickdraw GX 1.1
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1994-1997 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT GXMessages;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __GXMESSAGES__}
  28. {$SETC __GXMESSAGES__ := 1}
  29.  
  30. {$I+}
  31. {$SETC GXMessagesIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __CONDITIONALMACROS__}
  35. {$I ConditionalMacros.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __TYPES__}
  38. {$I Types.p}
  39. {$ENDC}
  40. {$IFC UNDEFINED __MIXEDMODE__}
  41. {$I MixedMode.p}
  42. {$ENDC}
  43.  
  44.  
  45. {$PUSH}
  46. {$ALIGN MAC68K}
  47. {$LibExport+}
  48.  
  49.  
  50. {
  51.  
  52.     >>>>>> CONSTANTS <<<<<<
  53.  
  54. }
  55. { Message Manager Trap }
  56.  
  57. CONST
  58.     messageManagerTrap            = $ABFB;
  59.  
  60.  
  61. { Message Manager Error Result Codes }
  62.     messageStopLoopingErr        = -5775;
  63.     cantDeleteRunningHandlerErr    = -5776;
  64.     noMessageTableErr            = -5777;
  65.     dupSignatureErr                = -5778;
  66.     messageNotReceivedErr        = -5799;
  67.  
  68.  
  69. {
  70.     DATA TYPES
  71. }
  72.  
  73. TYPE
  74.     MessageHandlerOverrideProcPtr = ProcPtr;  { FUNCTION MessageHandlerOverride(arg1: LONGINT; arg2: LONGINT; arg3: LONGINT; arg4: LONGINT; arg5: LONGINT; arg6: LONGINT): OSErr; C; }
  75.  
  76.     MessageHandlerOverrideUPP = UniversalProcPtr;
  77.  
  78. CONST
  79.     uppMessageHandlerOverrideProcInfo = $0003FFE1;
  80.  
  81. FUNCTION NewMessageHandlerOverrideProc(userRoutine: MessageHandlerOverrideProcPtr): MessageHandlerOverrideUPP;
  82.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  83.     INLINE $2E9F;
  84.     {$ENDC}
  85.  
  86. FUNCTION CallMessageHandlerOverrideProc(arg1: LONGINT; arg2: LONGINT; arg3: LONGINT; arg4: LONGINT; arg5: LONGINT; arg6: LONGINT; userRoutine: MessageHandlerOverrideUPP): OSErr;
  87.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  88.     {To be implemented:  Glue to move parameters into registers.}
  89.     {$ENDC}
  90.  
  91. TYPE
  92.     MessageGlobalsInitProcPtr = ProcPtr;  { PROCEDURE MessageGlobalsInit(messageGlobals: UNIV Ptr); C; }
  93.  
  94.     MessageGlobalsInitUPP = UniversalProcPtr;
  95.  
  96. CONST
  97.     uppMessageGlobalsInitProcInfo = $000000C1;
  98.  
  99. FUNCTION NewMessageGlobalsInitProc(userRoutine: MessageGlobalsInitProcPtr): MessageGlobalsInitUPP;
  100.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  101.     INLINE $2E9F;
  102.     {$ENDC}
  103.  
  104. PROCEDURE CallMessageGlobalsInitProc(messageGlobals: UNIV Ptr; userRoutine: MessageGlobalsInitUPP);
  105.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  106.     {To be implemented:  Glue to move parameters into registers.}
  107.     {$ENDC}
  108. {$IFC OLDROUTINENAMES }
  109.  
  110. TYPE
  111.     MessageHandlerOverrideProc            = MessageHandlerOverrideProcPtr;
  112.     MessageGlobalsInitProc                = MessageGlobalsInitProcPtr;
  113. {$ENDC}  {OLDROUTINENAMES}
  114.  
  115.  
  116. TYPE
  117.     MessageHandler = ^LONGINT;
  118.     MessageObject = ^LONGINT;
  119. {
  120.  
  121.     PUBLIC INTERFACES
  122.  
  123.     Message Handler API Routines
  124. }
  125. FUNCTION CountMessageHandlerInstances: LONGINT; C;
  126. FUNCTION GetMessageHandlerClassContext: Ptr; C;
  127. FUNCTION SetMessageHandlerClassContext(anyValue: UNIV Ptr): Ptr; C;
  128. FUNCTION GetMessageHandlerInstanceContext: Ptr; C;
  129. FUNCTION SetMessageHandlerInstanceContext(anyValue: UNIV Ptr): Ptr; C;
  130. FUNCTION NewMessageGlobals(messageGlobalsSize: LONGINT; initProc: MessageGlobalsInitUPP): OSErr; C;
  131. PROCEDURE DisposeMessageGlobals; C;
  132.  
  133. {$ALIGN RESET}
  134. {$POP}
  135.  
  136. {$SETC UsingIncludes := GXMessagesIncludes}
  137.  
  138. {$ENDC} {__GXMESSAGES__}
  139.  
  140. {$IFC NOT UsingIncludes}
  141.  END.
  142. {$ENDC}
  143.